<template>
	<view class="info_box">
		<view class="title_info">
			<view>宝宝姓名：{{dataObj.name}}</view>
			<view>所在班级：{{dataObj.class}}</view>
		</view>
		<u-time-line>
			<u-time-line-item v-for="(item,index) in dataList" :key="index" >
				<!-- 此处没有自定义左边的内容，会默认显示一个点 -->
				<template v-slot:node>
					<view class="dian">
						·
					</view>
					</template>
				<template v-slot:content>
					<view class="content">
						<view class="time cont">
							{{item.createTime}}
						</view>
						<view class="name cont">
							疫苗名称：{{item.vacname}}
						</view>
						<view class="jz_time cont">
							接种时间：{{item.jztime}}
						</view>
						<view class="person cont">
							创建人：{{item.createPerson}}
						</view>
					</view>
				</template>
			</u-time-line-item>
		</u-time-line>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				dataObj: {},
				dataList:[{
					createTime:'2024年12月27日',
					vacname:'hpv',
					jztime:'2024/12/12',
					createPerson:'张老师'
				},{
					createTime:'2024年12月27日',
					vacname:'hpv',
					jztime:'2024/12/12',
					createPerson:'李老师'
				},
				{
					createTime:'2024年12月27日',
					vacname:'hpv',
					jztime:'2024/12/12',
					createPerson:'六老师'
				}]
			}
		},
		onShow() {
			this.dataObj = this.$Route.query.id
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	
	.info_box {
		padding: 40rpx;
		margin: 40rpx;
		border-radius: 20rpx;
		background-color: #fff;
		.title_info {
			display: flex;
			justify-content: space-between;
			width: 100%;
		}
	}
	.dian{
		font-size: 40rpx;
		font-weight: bold;
		color: #FF8B00 ;
	}
	.content{
		margin-top: 30rpx;
		.cont{
			margin: 10rpx 0rpx;
			color: #999999 ;
		}
		.time{
			color: #000;
			margin-top: -7rpx;
		}
		
	}
	.u-node {
		width: 44rpx;
		height: 44rpx;
		border-radius: 100rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		background: #d0d0d0;
	}

	.u-order-title {
		color: #333333;
		font-weight: bold;
		font-size: 32rpx;
	}

	.u-order-desc {
		color: rgb(150, 150, 150);
		font-size: 28rpx;
		margin-bottom: 6rpx;
	}

	.u-order-time {
		color: rgb(200, 200, 200);
		font-size: 26rpx;
	}
	::v-deep .u-time-axis-item{
		margin-bottom: 0rpx !important;
	}
</style>